﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace pandx.Mulan.Dictionaries
{
    [Table("Dictionaries")]
    public class Dictionary:FullAuditedEntity<long>,IMayHaveTenant
    {
        public int? TenantId { get; set; }
        [Required]
        [StringLength(256)]
        public string Name {get;set;}
        [Required]
        [StringLength(256)]
        public string Value {get;set;}
        public long CategoryId {get;set;}
        public bool Status {get;set;}
        public int OrderNo {get;set;}
        public string Description {get;set;}

        public Dictionary()
        {
            Name = "";
            Value = "";
            Description = "";
        }
    }
}
